﻿namespace MeetAI.Utility
{
    public class Result
    {
        /// <summary>
        /// 状态码
        /// </summary>
        public ResultType code { get; set; } = ResultType.success;
        /// <summary>
        /// 消息
        /// </summary>
        public string message { get; set; } = string.Empty;
        /// <summary>
        /// 数据
        /// </summary>
        public dynamic data { get; set; }
    }
    /// <summary>
    /// 状态码枚举
    /// </summary>
    public enum ResultType
    {
        /// <summary>
        /// 成功
        /// </summary>
        success = 200,
        /// <summary>
        /// 失败
        /// </summary>
        fail = 500
    }
}